<fieldset id="plugin-setup-fieldset">
    <legend>Plugin Properties</legend>
    <div id="plugin-setup">
        <form id="pluginParametersForm" action="savePlugin" method="post">
            <input type="hidden" name="groupId" value="${descriptor.coordinates.groupId}" />
            <input type="hidden" name="pluginId" value="${descriptor.coordinates.pluginId}" />
            <input type="hidden" name="version" value="${descriptor.coordinates.version}" />
            <table cellspacing="1" cellpadding="0" class="two-columns-table">
                <tr>
                    <td class="label-cell">Name:</td>
                    <td class="content-cell">${descriptor.coordinates.pluginId}</td>
                </tr>
                <tr>
                    <td class="label-cell">Group:</td>
                    <td class="content-cell">${descriptor.coordinates.groupId}</td>
                </tr>
                <tr>
                    <td class="label-cell">Version:</td>
                    <td class="content-cell">${descriptor.coordinates.version}</td>
                </tr>

                <tr>
                    <td class="label-cell">Description:</td>
                    <td class="content-cell">${descriptor.description}</td>
                </tr>

                <tr>
                    <td class="label-cell">Author:</td>
                    <td class="content-cell">${descriptor.author}</td>
                </tr>

                <tr>
                    <td class="label-cell">Input description:</td>
                    <td class="content-cell">${descriptor.inputDescription}</td>
                </tr>

                <tr>
                    <td class="label-cell">Instance ID:</td>
                    <td class="content-cell">
                        <input type="text" name="instanceId" class="required" autocomplete='off'/>
                    </td>
                </tr>
                    <g:each in="${descriptor.configuration}" var="parameter">
                        <tr>
                            <td  class="label-cell">${parameter.name}: </td>
                            <td class="content-cell">
                                <input type="text" name="P${parameter.id}" size="20" value="${parameter.defaultValue}" autocomplete='off' class="required" />
                                <p class="parameter-description">${parameter.description}</p>
                            </td>
                        </tr>
                    </g:each>
            </table>
            <button id="pluginSaveButton" type="submit">Save Plugin</button>
        </form>
    </div>
</fieldset>
